<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        p {
            background-color: yellow;
            font-size: 50px;
        }

        span {
            background-color: red;
            font-size: 100px;
        }

        span:nth-child(1) {
            vertical-align: middle;
        }

        span:nth-child(2) {
            vertical-align: middle;
        }
    </style>
</head>

<body>
    <p>
        <span>XXxx</span>
        <img src="./QQ截图20200620154658.png" style="width: 40px; " alt="">
        XXxx
    </p>

</body>

</html>